	const  SYSTEM_INFO= uni.getSystemInfoSync();
	//statusBarHeight 顶部安全高度 单位 是px
	// uniplatform 是 当前平台
export const statusBarHeight=()=>SYSTEM_INFO.statusBarHeight||0;
// 因为有的 平台没有 胶囊按钮
export const getTitleBarHeight=()=>{
	if(uni.getMenuButtonBoundingClientRect){
		  let {top,height} = uni.getMenuButtonBoundingClientRect();
		  let titleBarHeight=(top-statusBarHeight())*2+height;
		  return titleBarHeight;
		
	}
	else{
		return 40;
	}
}
export const getNavBarHeight=()=>{
	return getTitleBarHeight()+statusBarHeight();
}

	